<?php

namespace Drawping\Amap\Foundation\ServiceProviders;

use Drawping\Amap\Yuntu\Data;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

class YuntuDataServiceProvider implements ServiceProviderInterface
{
    public function register(Container $pimple)
    {
        $pimple['data'] = function ($pimple) {
            return new Data($pimple['config']);
        };
    }
}
